package org.springblade.task.base.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.persistence.Column;
import java.util.Date;

/**
 * @Title: 完成阅读表
 * @version V1.0
 */
@Data
@TableName("t_base_finish_read_ebook")
public class BaseFinishReadEbook {
	/**
	 * 主键
	 */
	@ApiModelProperty(value = "主键")
	@TableId(value = "id", type = IdType.AUTO)
	@Column(columnDefinition = "bigint(20) NOT NULL")
	private Long id;
	/**
	 * 读完的ebookId
	 */
	@Column(columnDefinition = "bigint(20) DEFAULT NULL COMMENT '读完的ebookId'")
	private Long ebookId;
	/**
	 * 用户key
	 */
	@Column(columnDefinition = "varchar(50) DEFAULT NULL COMMENT '用户key'")
	private String pin;
	/**
	 * 记录创建时间
	 */
	@Column(columnDefinition = "datetime NOT NULL COMMENT '记录创建时间'")
	private Date created;
}
